package com.neuedu.advance.override;

/**
 * @author 金山
 * 项目：javase
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2024/10/1712:21
 */
public class Animal {


    private String name;
    private int age;
    private double weight;


    public Animal() {
    }

    public Animal(String name) {
        this.name = name;
    }

    public void  play(){
        System.out.println("================================");
        System.out.println("================================");
        System.out.println("=========== 【"+name+"】在表演 ====");
        System.out.println("================================");
        System.out.println("================================");
    }


    public void eat(){
        System.out.println("=========== 【"+name+"】 吃饭 ===========");
    }





}
